#include "mainwindow.h"
#include <QApplication>
#include <QTextCodec>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

#ifdef Q_OS_LINUX
    QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
#endif

#ifdef Q_OS_WIN
    QTextCodec::setCodecForLocale(QTextCodec::codecForName("Windows-1250"));
#endif

    QCoreApplication::setApplicationName("Qt Zawody Wędkarskie");
    QCoreApplication::setOrganizationName("Bartłomiej Cieślak");
    QCoreApplication::setOrganizationDomain("www.cieslak.info.pl");
    QCoreApplication::setApplicationVersion("0.0.1");

    MainWindow w;
    w.show();

    return a.exec();
}
